﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rabbit.Logic;
using Raven.Database;
using Raven.Client;
using Raven.Client.Document;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hello");

            HttpTest.GetTest();

            //using (IDocumentStore store = new DocumentStore
            //{
            //    Url = "http://nalandra.gicp.net:58080/",	// server URL
            //    DefaultDatabase = "rabbit"	// default database
            //})
            //{
            //    store.Initialize(); // initializes document store, by connecting to server and downloading various configurations

            //    //rabbitCreate.CreateOrder(store);
            //    RabbitUse.GetProductList(store);
            //}

            Console.ReadLine();
        }

        public static void Test1(IDocumentStore store)
        {
            using (IDocumentSession session = store.OpenSession()) // opens a session that will work in context of 'DefaultDatabase'
            {
                Customer customer = session.Load<Customer>("customers/998");
                string phone = customer.CellPhone;
            }
        }
    }
}
